//
//  PPAlbumElements.m
//  pickpic
//
//  Created by Jinxiao on 9/25/16.
//  Copyright © 2016 MicroDream. All rights reserved.
//

#import "PPAlbumElements.h"

#import "PPImageTransaction.h"

@implementation PPAbstractArtwork

- (NSString *)transactionIdentifier {
    return _uuid;
}

@end


@implementation PPAlbumImageModel (PPAlbumImageElement)

- (PPAbstractArtwork *)artwork {
    PPAbstractArtwork *artwork = [[PPAbstractArtwork alloc] init];
    artwork.uuid = self.uuid;
    artwork.image = [[PPImageTransaction sharedInstance] imageForKey:artwork.transactionIdentifier];
    artwork.URLString = self.URLString;
    artwork.desc = self.desc;

    return artwork;
}

@end

@implementation PPAlbumTagElement


@end
